package xin.sunzy.ssms.entity.po;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

/**
 * 权限列表
 */

@Alias("permission")
public class Permission implements Serializable {

	private Long id;//权限id	
	private Long parentId;//父节点id 没有父节点则为-1
	private Long noteLevel;//节点深度 默认为1
	private String opsName;//操作名称
	private Long opsType;//操作类型，定义3种类型。1代表菜单类型 2代表页面类型 3代表按钮操作类型
	private String opsUrl;//操作url
    private String permission;//权限字符串
	private String opsIcon;//icon图片路径
	private Long status;//状态位 1为启用 0为停用	
	private Long sortNum;//排序
	private Date createTime;//创建时间
	private String createUser;//创建人
	private Date lastEditTime;//最后编辑时间
	private String lastEditUser;//最后编辑人
	private String description;//操作描述	

	public Permission() {}

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getNoteLevel() {
        return noteLevel;
    }

    public void setNoteLevel(Long noteLevel) {
        this.noteLevel = noteLevel;
    }

    public String getOpsName() {
        return opsName;
    }

    public void setOpsName(String opsName) {
        this.opsName = opsName;
    }

    public Long getOpsType() {
        return opsType;
    }

    public void setOpsType(Long opsType) {
        this.opsType = opsType;
    }

    public String getOpsUrl() {
        return opsUrl;
    }

    public void setOpsUrl(String opsUrl) {
        this.opsUrl = opsUrl;
    }

    public String getOpsIcon() {
        return opsIcon;
    }

    public void setOpsIcon(String opsIcon) {
        this.opsIcon = opsIcon;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getSortNum() {
        return sortNum;
    }

    public void setSortNum(Long sortNum) {
        this.sortNum = sortNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getLastEditTime() {
        return lastEditTime;
    }

    public void setLastEditTime(Date lastEditTime) {
        this.lastEditTime = lastEditTime;
    }

    public String getLastEditUser() {
        return lastEditUser;
    }

    public void setLastEditUser(String lastEditUser) {
        this.lastEditUser = lastEditUser;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

}